﻿@section Partial{
<script type="text/javascript">
        $("#FaceImg").fileinput({
            overwriteInitial: true,
            maxFileSize: 1500,
            showClose: false,
            showCaption: false,
            showBrowse: false,
            browseOnZoneClick: true,
            removeLabel: '',
            removeIcon: '<i class="glyphicon glyphicon-remove"></i>',
            removeTitle: '重置',
            elErrorContainer: '#kv-avatar-errors-2',
            msgErrorClass: 'alert alert-block alert-danger',
            defaultPreviewContent: '<img src="../content/Image/FaceImage/default_male.jpg" alt="Your Avatar" style="width:160px"><h6 class="text-muted">点击选择</h6>',
            layoutTemplates: { main2: '{preview} ' + ' {remove} {browse}' },
            allowedFileExtensions: ["jpg", "png", "gif"]
        });
</script>
}

<div class=“kv-avatar center-block text-center” style=“ width ：200px ”>
    <input id="FaceImg" name="FaceImg" type="file" class=“file-loading” required>
</div>